package com.wjs.blog.controller;

import com.wjs.blog.service.LoginService;
import com.wjs.blog.vo.Result;
import com.wjs.blog.vo.parms.LoginParms;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/register")
public class RegisterControl {
    @Autowired
    private LoginService loginService;
    @PostMapping
    public Result Register(@RequestBody LoginParms loginParms){
        return loginService.register(loginParms);
    }
}
